<script type="text/javascript" src="<?php echo base_url(); ?>public/scripts/custom.js"></script>
<div id="content">
    <div id="bodysite">
    	<div id="searchome">
        	<?php $this->load->view("public/msearch"); ?>
        </div>
        <div id="youhere">
        	You are here : <a href="<?php echo base_url() ?>" class="gray" title="Home">Home</a>&nbsp;&raquo;&nbsp;<a href="javascript:void(0)" title="Search results">Search results</a>
        </div>
    	<div id="bodyl">
        	<div id="offertit">
            	<h2>SEARCH RESULTS</h2>
                <div id="offerinfo">
                	Search more tours in Vietnam, Laos and Combodia...
                </div>
            </div>
            <div id="hotours">
            	<div id="hotourstit">
                	<div id="hottile">
                    	<h2>HOT TOURS</h2>	
                    </div>
                    <div id="hottilr">
                    </div>
                    <div style="clear:both"></div>
                </div>
                <div id="hotourscon">
                <?php $this->load->view("public/cut_str"); ?>
				<?php if(isset($listall) && $listall != NULL){ ?>
				<?php foreach($listall as $tours){ ?>
                	<div class="tours">
                    	<div class="toursl">
                            <a href="<?php echo base_url()."tours/".$tours['tours_rewrite']."-".$tours['tours_id']; ?>.html"><img src="<?php echo base_url()."uploads/tours/thumb/".$tours['tours_image']; ?>" class="tourimg" alt="<?php echo $tours['tours_title']; ?>" title="<?php echo $tours['tours_title']; ?>" /></a>
                        </div>
                        <div class="toursr">
                            <h3><a href="<?php echo base_url()."tours/".$tours['tours_rewrite']."-".$tours['tours_id']; ?>.html" title="<?php echo $tours['tours_title']; ?>"><?php echo $tours['tours_title']; ?></a></h3>
                            <p class="tourp">Duration: <?php echo $tours['tours_type']; ?></p>
                            <p class="tourpri">Price from : <strong class="tourstr">$<?php echo $tours['tours_price']; ?></strong></p>
                            <p><span class="spangra">Grade : </span>
                            <?php
                            $typeimage = $this->mtype->get_data($tours['type_id']);
                            for($i=0; $i<$tours['tours_star']; $i++){
                            ?>
                                <img src="<?php echo base_url(); ?>uploads/holiday/<?php echo $typeimage['icon']; ?>" class="grare" alt="" />
                            <?php }?>
                            <?php for($j=0; $j<5-$i;$j++){ ?>
                                <img src="<?php echo base_url(); ?>uploads/holiday/<?php echo $typeimage['icon2'];?>" class="grare" alt="" />
                            <?php }?>
                            </p>
                            <div class="cls"></div>
                            <div class="tourino"><?php echo cut_str($tours['tours_short_info'],0,100); ?><br /><a class="acomment" href="<?php echo base_url()."tours/".$tours['tours_rewrite']."-".$tours['tours_id']; ?>.html">More Details ...</a></div>
                        </div>
                    </div>
                    <div class="cls"></div>
                <?php } } ?>
                </div>
                <div id="pagination">
                	<?php echo $listpage; ?>
                </div>
            </div>
        </div>
        <div id="bodyr">
        	<div id="livechat"><?php $this->load->view("public/livezilla"); ?></div>
            <?php $this->load->view("public/guide"); ?>
            <div id="testnimo"><?php $this->load->view("public/test"); ?></div>
            <div id="news"><?php $this->load->view("public/news"); ?></div>
        </div>
        <div class="cls"></div>
    </div>
</div>